package com.briup.ch13;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/21
 * @Description:
 */
public class Student {
    private String name;
    private int age;
    public String id;
    public static int count = 0;
    private static String school = "Beijing University of Posts and Telecommunications";
    public Student(){

    }

    private Student(String id){
        this.id = id;
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Student(String name, int age, String major) {
        this.name = name;
        this.age = age;
        this.id = major;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getMajor() {
        return id;
    }

    public void setMajor(String major) {
        this.id = major;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", major='" + id + '\'' +
                '}';
    }
}
